home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0842
/
winwhois.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-11
|
2KB
|
70 lines
#include "mitcpyrt.h"
#define IDM_CUT 101 + WM_USER
#define IDM_COPY 102 + WM_USER
#define IDM_ABOUT 104 + WM_USER
#define IDM_CLEAR 105 + WM_USER
#define IDC_NAMEINPUT 109 + WM_USER
#define IDC_RESPONSES 110 + WM_USER
#define IDC_MAKEQUERY 111 + WM_USER
#define IDC_EXIT 112 + WM_USER
#define IDC_CLEAR 113 + WM_USER
#define IDC_HELP 114 + WM_USER
#define IDC_STATUS 115 + WM_USER
#define IDM_CHANGEHOST 116 + WM_USER
#define IDC_CHANGEHOST 117 + WM_USER
#define IDC_HOSTINPUT 118 + WM_USER
#define IDC_GOTADDR 119 + WM_USER
#define IDC_GOTSERVER 120 + WM_USER
#define IDC_GOTCONNECT 121 + WM_USER
#define IDC_GOTRESPONSE 122 + WM_USER
#define IDC_RESETDISPLAY 123 + WM_USER
#define SET_NAME 124 + WM_USER
#define SET_HOST 125 + WM_USER
#define START_QUERY 126 + WM_USER
#define IDC_GETLIST 127 + WM_USER
#define IDC_WHOISLISTSERVER 128 + WM_USER
#define IDC_STARTDIALOG 200 + WM_USER
BOOL InitApplication(HINSTANCE);
int PASCAL WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
BOOL InitInstance(HANDLE, int, LPHANDLE);
LONG FAR PASCAL MainWndProc(HWND, UINT, WPARAM, LPARAM);
BOOL FAR PASCAL About(HWND, WORD, WPARAM, LPARAM);
BOOL FAR PASCAL MainDialog(HWND, WORD, WPARAM, LPARAM);
void CutText (HWND, WORD);
void CopyText (HWND, WORD);
void ClearText (HWND, WORD);
void DoWhoisQuery (HWND hDlg, LPSTR lpszName, LPSTR lpszQHost);
LONG FAR PASCAL QueryWndProc (HWND hWind, UINT message, WPARAM wParam, LPARAM lParam);
/* Why this isn't defined anywhere, I have no idea,
but it's a good one; it's so good, people like the writers
of the WinSock spec actually thought it existed :-) */
#define MAKEWORD(low, high) ((WORD)(((BYTE)(low)) | (((UINT)((BYTE)(high))) << 8)))
typedef struct request
{
HWND hWin;
struct sockaddr_in sock_in;
int s;
HANDLE hHost, hQuery;
HANDLE hbuffer;
HANDLE sphandle;
HANDLE hNextReq;
LPSTR lpHost, lpQuery;
struct hostent FAR *lpbuffer;
struct servent FAR *sp;
struct request FAR *NextReq;
} REQUEST;
REQUEST FAR* FindRequest (HWND hWind);
void CleanRequest (HWND hWind);
void GRelease (HANDLE FAR *h);